const express = require("express");
const router = express.Router();
const user_handler = require("../router-handler/user");
const { userValidationRules, validate } = require("../schema/user.js");
// 注册用户
router.post("/reguser", userValidationRules(), validate, user_handler.reguser);

// 登录
router.post("/login", userValidationRules(), validate, user_handler.login);

module.exports = router;
